home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / E-P-O.ZIP / P4_READ.TXT < prev    next >
Encoding:
Text File  |  1996-08-31  |  6.7 KB  |  176 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "Paul's Primitive POV People", or "P4".
  6. //
  7. // Created by: Paul T. Dawson
  8. //             ptdawson@voicenet.com
  9. //             http://www.voicenet.com/~ptdawson
  10. //
  11. //------------------------------------------------------------------->
  12. //------------------------------------------------------------------->
  13.  
  14. This is a very quick introduction to the "P4" include file, which lets
  15. you build semi-realistic raytraced people.
  16.  
  17. Files needed:
  18.  
  19.         1 - P4DEF_00.INC
  20.         2 - P4_MAIN.INC
  21.         3 - P4_TEST.POV
  22.  
  23. 1 - The P4DEF_00.INC file lists all of the parameters and settings for
  24.     one person. Make a copy of this file, for example: P4DEF_01.INC.
  25.     Then edit the copy to make any changes you want.
  26.  
  27. 2 - The big file is P4_MAIN.INC. This has a little bit of everything
  28.     in it. Some of the sections are very sloppy, and/or un-artistic!
  29.  
  30. 3 - To test your new person, run P4_TEST.POV. You will have to edit
  31.     that a little, so it calls the correct P4DEF_??.INC file. The test
  32.     file has several camera settings, to zoom in on different areas.
  33.  
  34. //------------------------------------------------------------------->
  35. //------------------------------------------------------------------->
  36.  
  37. The test file, and YOUR scene files, should include just the proper
  38. P4DEF_??.INC files. Those will call P4_MAIN.INC, and then your main
  39. file gets an object called "One_Person" back. Then just show that!
  40.  
  41. //------------------------------------------------------------------->
  42. //------------------------------------------------------------------->
  43.  
  44. OK, here are the legal parameters for the people. Please, if you make
  45. any additions to these, send them to me, and I'll add them to the big
  46. "official" version. There's a lot of room for improvements here!
  47.  
  48. These all can have any POV texture, including (but not limited to) a
  49. pigment, texture, normal, image_map, etc.
  50.  
  51.         P4_Eye_Texture
  52.         P4_Glasses_Texture
  53.         P4_Hair_Texture
  54.         P4_Hat_Texture
  55.         P4_Shirt_Texture
  56.         P4_Shoe_Texture
  57.         P4_Shorts_Texture
  58.         P4_Skin_Texture
  59.  
  60. //------------------------------------------------------------------->
  61. //------------------------------------------------------------------->
  62.  
  63. These each take one integer number.
  64.  
  65.         P4_Eye_Type     = (1 only)
  66.         P4_Glasses_Type = (0 no glasses) (1 glasses)
  67.         P4_Hair_Type    = (1 short) (2 frizzy) (3 long)
  68.         P4_Hand_Type    = (1 fist) (2 fingers)
  69.         P4_Hat_Type     = (1 painters) (2 propellor beanie)
  70.                           (3 helmet) (4 D.P. Gumby) (5 baseball)
  71.         P4_Mouth_Type   = (1 straight) (2 open) (3 smile) (4 frown)
  72.                           (5 narrow) Note: those are all pretty bad!
  73.         P4_Nose_Type    = (1 small) (2 medium)
  74.         P4_Shirt_Type   = (2 only) Note: There is no type 1.
  75.         P4_Shoe_Type    = (1 high top) (2 skates) (3 low top)
  76.         P4_Shorts_Type  = (1 baggy) (2 tight) (3 medium)
  77.  
  78. As you can see, there aren't too many choices! Send in any great new
  79. things that you add to this (please), and then I can keep on releasing
  80. more and better (and *free*, doh!) updates to this!
  81.  
  82. //------------------------------------------------------------------->
  83. //------------------------------------------------------------------->
  84.  
  85. These sizes can be almost any positive number. Experiment!
  86.  
  87.         P4_Leg_Length = 30
  88.         P4_Neck_Height = 3
  89.         P4_Shirt_Height = 24
  90.         P4_Shorts_Height = 8
  91.  
  92. //------------------------------------------------------------------->
  93. //------------------------------------------------------------------->
  94.  
  95. The rotation values are a real mess. Each object starts out at <0,0,0>,
  96. and it gets rotated before it is moved. It's the last minute for the IRTC,
  97. so I can't explain these - sorry!!!
  98.  
  99. One thing that's really goofy - The person is facing you, and LEFT means
  100. the left side of your SCREEN. It seemed easier at first to arrange it
  101. this way, now I'm not too sure!?!
  102.  
  103.         P4_Hat_Rotate = < 20, -40, 0 >
  104.         P4_Neck_Rotate = < 0, 0, 0 >
  105.         P4_Waist_Rotate = < -10, 0, 0 >
  106.  
  107.         P4_Left_Elbow_Rotate = < 40, -110, 0 >
  108.         P4_Right_Elbow_Rotate = < 0, 70, 0 >
  109.  
  110.         P4_Left_Eyelid_Rotate = -40
  111.         P4_Right_Eyelid_Rotate = -40
  112.  
  113.         P4_Left_Knee_Rotate = < -20, 0, 0 >
  114.         P4_Right_Knee_Rotate = < -60, 20, 0 >
  115.  
  116.         P4_Left_Leg_Rotate = < 20, 0, -5 >
  117.         P4_Right_Leg_Rotate = < 0, 0, 30 >
  118.  
  119.         P4_Left_Shoulder_Rotate = < -60, -10, 30 >
  120.         P4_Right_Shoulder_Rotate = < -30, -20, -50 >
  121.  
  122. //------------------------------------------------------------------->
  123. //------------------------------------------------------------------->
  124.  
  125. Always set the "holding flag" to false, unless you want your person
  126. to carry something.
  127.  
  128.         P4_Holding_Flag = true
  129.  
  130.         P4_Holding_Object =
  131.                 cylinder { <6,0,0><6,2,0>,6 pigment{Red} }
  132.  
  133. Note: Any POV object is alright to use for the object.
  134.  
  135. //------------------------------------------------------------------->
  136. //------------------------------------------------------------------->
  137.  
  138. Here is another optional object - a "bracelet". This also has a flag
  139. to set on/off. This prevents duplicate bracelets! The bracelet should
  140. be at <0,0,0>, just like a standard torus. Then the P4 system moves
  141. it onto the person's arm!
  142.  
  143.         P4_Bracelet_Flag = true
  144.  
  145.         P4_Bracelet_Object =
  146.                 torus { 3, 1 pigment{Red} }
  147.  
  148. //------------------------------------------------------------------->
  149. //------------------------------------------------------------------->
  150.  
  151. Despite my attempts at using "realistic inches" as units, the people
  152. always seem to end up 8 or 9 feet tall. This variable lets you scale
  153. the person down to a normal size. Use the P4_TEST.POV scene to see how
  154. tall your person actually is!
  155.  
  156.         P4_Total_Scale = 80/100
  157.  
  158. //------------------------------------------------------------------->
  159. //------------------------------------------------------------------->
  160.  
  161. This is the height to move the person up, so his/her feet are on the
  162. floor. Sorry, but because of bendable legs, this has to be adjusted
  163. manually (by YOU). 8-)
  164.  
  165.         P4_Y_Adjust = 32.5
  166.  
  167. //------------------------------------------------------------------->
  168. //------------------------------------------------------------------->
  169.  
  170. Well, that's all for this time. This is version 0.00000000000000001,
  171. and it's free, and I hope you all have fun with it!
  172.  
  173. //------------------------------------------------------------------->
  174. //------------------------------------------------------------------->
  175.  
  176.